<!DOCTYPE html>
<html lang="en">

<head>
        <title>新账号注册页面</title>
		<meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="__ROOT__/PUBLIC/css/bootstrap.min.css" />
		<link rel="stylesheet" href="__ROOT__/PUBLIC/css/bootstrap-responsive.min.css" />
        <link rel="stylesheet" href="__ROOT__/PUBLIC/css/matrix-login.css" />
        <link href="__ROOT__/PUBLIC/font-awesome/css/font-awesome.css" rel="stylesheet" />
		<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>

    </head>
    <body>
    
    <!-- <form method="post" action="{:U('Login/index')}">
    <p>用户<input type="text" name="user" /></p>
    <p>密码<input type="text" name="password" /></p>
    <p><input type="submit" value="登录" /></p>
    </form> -->
        <div id="loginbox">            
            <form  method="post" action="{:U('Xzh/index')}" id="loginform" class="form-vertical" enctype="multipart/form-data" >
				<div class="control-group normal_text"> <h3><img src="__ROOT__/PUBLIC/img/logo.png" alt="Logo" /></h3></div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on bg_lg"><i class="icon-user"></i></span><input type="text" name="user" placeholder="用户名" />
                        </div>
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on bg_ly"><i class="icon-lock"></i></span><input id="mimabj" type="password" name="password" placeholder="密码" />
                        </div>
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on bg_ly"><i class="icon-lock"></i></span><input id="mimabj1" type="password" name="password1" placeholder="密码" />
                        </div>
                    </div>
                </div>
                 <div class="control-group">
                    <div class="controls">
                        <div class="main_input_box">
                            <span class="add-on bg_lg"><i class="icon-user"></i></span><input id="Mail" type="text" name="youxiang" placeholder="邮箱" />
                        </div>
                    </div>
                </div>
                <div class="form-actions">                   
                    <span class="pull-right"><input  type=submit name=submit value=注册></span>                         
                </div>
            </form>
            
        </div>
        
        <script src="__ROOT__/PUBLIC/js/jquery.min.js"></script>  
        <script src="__ROOT__/PUBLIC/js/matrix.login.js"></script> 
        <script type="text/javascript">
        $('#mimabj1').blur(function(e){
        	
        	if($('#mimabj').val()!=$('#mimabj1').val())
        	{
        		$('#mimabj').val("");
        		$('#mimabj1').val("");
        		alert("两次密码不一样");
        	}
        	
        });
        $('#Mail').blur(function(e){	
        	
        	 var t  = /^([a-zA-Z\d])(\w|\-)+@[a-zA-Z\d]+\.[a-zA-Z]{2,4}$/;
             var y=document.getElementById("Mail");
             console.log(y.value);
             console.log(t.test(y.value));
             if(!(t.test( $('#Mail').val())))
             {                 
              alert("邮箱格式不正确！");
             }else{
            
             }
			 
		  });

       
        </script> 
    </body>

</html>

